package org.jeecg.modules.rencai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.rencai.bo.NameValueBO;
import org.jeecg.modules.rencai.entity.Institute;
import org.jeecg.modules.rencai.mapper.InstituteMapper;
import org.jeecg.modules.rencai.service.IInstituteService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 研究院
 * @Author: jeecg-boot
 * @Date: 2020-04-03
 * @Version: V1.0
 */
@Service
public class InstituteServiceImpl extends ServiceImpl<InstituteMapper, Institute> implements IInstituteService {
    @Override
    public List<String> queryTypeList(String province, String city,String mainType) {
        return baseMapper.queryTypeList(province, city,mainType);
    }

    @Override
    public List<NameValueBO> countByType(List<String> type,String mainType) {
        return baseMapper.countByType(type,mainType);
    }

    @Override
    public List<NameValueBO> countCityByType(String province, List<String> types,String mainType) {
        return baseMapper.countCityByType(province, types,mainType);
    }

    @Override
    public List<String> queryProvinceList(String mainType, String type) {
        return baseMapper.queryProvinceList(mainType,type);
    }
}
